package com.hemerasolutions.v2trainer.model.schedule;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;

import com.hemerasolutions.v2trainer.model.base.BaseModel;
import com.hemerasolutions.v2trainer.model.interfaces.BaseModelInterface;
import com.hemerasolutions.v2trainer.model.step.Step;

@Entity
public class DaySchedule extends BaseModel implements BaseModelInterface {
	 
	private static final long serialVersionUID = 1L;
 
    @Column(length = 50)
	private Date name;
	 
    @OneToMany
    @JoinColumn(name = "step_id") 	    
	private List<Step> steps;

    @Temporal(javax.persistence.TemporalType.TIMESTAMP)	
	private Date dayDate;
    

    public DaySchedule() {
		super();
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Date getName() {
		return name;
	}

	public List<Step> getSteps() {
		return steps;
	}

	public Date getDayDate() {
		return dayDate;
	}

	public void setName(Date name) {
		this.name = name;
	}

	public void setSteps(List<Step> steps) {
		this.steps = steps;
	}

	public void setDayDate(Date dayDate) {
		this.dayDate = dayDate;
	}
}
 
